# @Time   : 2022/7/26 14:37
# @Author : Fioman
# @Phone  : 13149920693
# @Tips   : Talk is Cheap,Show me the code! ^_^^_^
import socket
addr = ("192.168.0.2",1004)

clientSocket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
ret = clientSocket.connect(addr)
print("ret: {}".format(ret))
res = clientSocket.recv(1024)
print("res: {}".format(res))

# 定义发送的数据
sendData = "1,-450.340,-599.450,55.560,0,\r\n"

for i in range(1):
    clientSocket.send(sendData.encode("gbk"))
